export function authorize() {
    // 微信授权登录
    let redirect_uri = encodeURIComponent(window.location.href),
      appid = "wxb9d88d2699657316";
    let wx_url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=http://yushi.junhecms.com&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`;
    window.location.href = wx_url;
}
